package observer.a;

public class WeatherStation {

	public static void main(String[] args) {

		WeatherData weatherData = new WeatherData();
		
		Observer currentConditionDisplay = new CurrentConditionsDisplay(weatherData);
		Observer forecastDisplay = new ForecastDisplay(weatherData);
		
		weatherData.setMeasurements(15, 36, 55);
		weatherData.measurementsChanged();
		
		weatherData.setMeasurements(-1, 55, 22);
		weatherData.measurementsChanged();
		
		weatherData.setMeasurements(35, 36, 22);
		weatherData.measurementsChanged();
		
	}

}
